/*
 * Copyright@www.it1997.com.
 * @Author: 陈晓晨
 * @Date: 2020/6/1
 * Description:版权所有 QQ:376231445
 */

package com.it1997.it1997admin.service;

import com.it1997.it1997admin.pojo.User;
import com.it1997.it1997admin.vo.AdminVo;

import java.util.List;

public interface UserService {
    //根据用户名查询用户
    User getUserByUserName(String username);
    //查询所有管理员用户
    List<AdminVo> getAdminList(Integer page,Integer limit);
    //添加管理员用户
    Integer addAdmin(AdminVo adminVo);

    AdminVo getAdminById(Integer userId);

    Integer updateAdminById(AdminVo adminVo);

    Integer getAdminCount();

    Integer deleteAdminById(List<AdminVo> adminVoList);

    List<AdminVo> searchAdmin(AdminVo adminVo);

    Integer getSearchAdminCount(AdminVo adminVo);
}

